<form action="<{link app=b2c ctl='site_passport' act='create' args01=$next_url}>" method="post" >
  <input name="forward" type="hidden" value="<{$options.url}>">
  <input name="mini" type="hidden" value="<{$mini_passport}>">
  <ul>
    <li class="form-item">
      <{assign var='userr' value='用户名，最少4个字符'}>
      <{assign var='filluserr' value='请填写登录帐号，最少4个字符'}>
      <label for="" class="form-label"><em class="warn">*</em><{t}>用户名<{/t}>:</label><span class="form-act"><{input type="text" name="pam_account[login_name]" id="" class="action-account-check" placeholder=$userr|t:'b2c' vtype="required" data-caution=$filluserr|t:'b2c' autofocus}><span class="validation-messagebox"></span></span>
    </li>
    <li class="form-item">
      <label for="" class="form-label"><em class="warn">*</em><{t}>姓名<{/t}>：</label><label><span class="form-act"><{input type="text" name="username" id=""   vtype="required" }><span class="validation-messagebox"></span></label>
    </li>
    <li class="form-item">
      <label for="" class="form-label"><em class="warn">*</em><{t}>性别<{/t}>：&nbsp;</label>
      <label><div style="margin-top:4px"><input name="sex" type="radio" checked value="1" /><{t}>男<{/t}> &nbsp; &nbsp;
             <input name="sex" type="radio" value="0" /><{t}>女<{/t}></div>
             <div id="sex" style="display:none"><q style="color: #b14c49;margin-left:-47px;margin-top:20px；padding: 0;height: 16px;line-height: 16px;white-space: nowrap;" class="icon">!</q><span style="padding: 0;height: 16px;line-height: 12px;white-space: nowrap;font-size: 12px;" class="caution-content">&nbsp;本项必选</span></div>
      </label>
    </li>
     <li class="form-item">
      <label for="" class="form-label"><em class="warn">*</em><{t}>手机<{/t}>：</label>
      <label>
        <span class="form-act"><{$html}><{input type="text" name="mobile"}></span>
      </label>
    </li>
    <li class="form-item">
      <label for="" class="form-label"><{t}>邮箱<{/t}>：</label><label><span class="form-act"><{input type="text" name="email" vtype="email" }><span class="validation-messagebox"></span></label>
    </li>
    <li class="form-item">
      <label for="" class="form-label"><em class="warn">*</em><{t}>公司名称<{/t}>：</label><label><span class="form-act"><{input type="text" onchange="checkMember(this)" name="name"   vtype="required" placeholder=""}><span class="validation-messagebox"></span></label>
    </li>
    <li class="form-item">
      <label for="" class="form-label"><em class="warn">*</em><{t}>公司地址<{/t}>：</label><label><span class="form-act"><{input app=ectools type="region" name='area' vtype='area' value=$edit_addr.area callback="selectArea"}><span class="validation-messagebox"></span></label>
    </li>
    <li class="form-item">
      <label for="" class="form-label"></label><label><span class="form-act"><{input type="text" name="co_address" id=""   vtype="required" }><span class="validation-messagebox"></span></label>
    </li>
    <li style="padding-left:130px;font-size:14px" >
      <label for=""><em class="warn">*</em><{t}>您通过哪种途径知道我们网站<{/t}>：</label>
      <table style="margin-left: 65px;width: 820px;">
        <tr>
          <td>
            <label style=""><input name="client_source" type="radio" value="百度搜索" /><{t}>百度搜索<{/t}> </label>
          </td>
          <td>
            <label><input name="client_source" type="radio" value="杂志" /><{t}>杂志<{/t}> </label>
          </td>
          <td>
            <label><input name="client_source" type="radio" value="展会" /><{t}>展会<{/t}> </label>
          </td>
        </tr>
        <tr>
          <td>
            <label><input name="client_source" type="radio" value="微信扫描关注" /><{t}>微信扫描关注<{/t}> </label>
          </td>
          <td>
            <label style=""><input name="client_source" type="radio" value="360网页搜索" /><{t}>360网页搜索<{/t}> </label>
          </td>
          <td>
            <label style=""><input name="client_source" type="radio" value="室内外广告"/><{t}>室内外广告<{/t}></label>
          </td>
        </tr>
        <tr>
          <td>
            <label style=""><input name="client_source" type="radio" value="朋友推荐" /><{t}>朋友推荐<{/t}><input style="height:16px;line-height:16px;width:100px;" type="text" name="friends" placeholder=""></label>
          </td>
          <td>
            <label style=""><input name="client_source" type="radio" value="业务员推荐" /><{t}>业务员推荐<{/t}> <input style="height:16px;line-height:16px;width:100px" name="clerk" type="text" placeholder=""></label>
          </td>
          <td>
            <label style=""><input name="client_source" type="radio" value="其他" /><{t}>其他<{/t}><input style="height:16px;line-height:16px;width:100px" name="other" type="text"></label>
          </td>
        </tr>
      </table>
    </li>

    <li class="form-item">
    <{assign var='memberpswd' value='6-20个字符'}>
    <{assign var='errorpswone' value='请填写密码，6-20个字符'}>
    <{assign var='errorpswtwo' value='输入不正确，最少6个字符'}>
    <{assign var='errorpswthree' value='输入不正确，最多20个字符'}>
    <{assign var='againpsw' value='再次填写密码'}>
    <{assign var='resetpsw' value='密码与确认密码不相符，请重新填写'}>
    <label for="" class="form-label"><em class="warn">*</em><{t}>密码<{/t}>：</label><span class="form-act"><{input type="password" name="pam_account[login_password]" maxlength="20" placeholder=$memberpswd|t:'b2c'   vtype="required&&minLength:6&&maxLength:20" data-caution=$errorpswone|t:'b2c'&&$errorpswtwo|t:'b2c'&&$errorpswthree|t:'b2c' check='true'}></span>
    </li>
    <li class="form-item">
    <label for="" class="form-label"><em class="warn">*</em><{t}>确认密码<{/t}>：</label><span class="form-act"><{input type="password" name="pam_account[psw_confirm]" id="" class="x-input" maxlength="20" placeholder=$againpsw|t:'b2c' vtype="equal:pam_account[login_password]" data-caution=$resetpsw|t:'b2c'}><span class="validation-messagebox"></span></span>
    </li>
    <{foreach from=$attr item=item name="item" key='row'}>
    <li class="form-item">
    <label for="" class="form-label"><{if $item.attr_required eq 'true'}><em class="warn">*</em><{/if}><{$item.attr_name}>：</label>
    <span class="form-act">
      <{if $item.attr_type =='date'}>
        <{if $item.attr_value != '0-0-0'}>
          <{assign var=value value=$item.attr_value}>
        <{/if}>
        <{if $item.attr_required eq 'true'}>
          <{assign var=vtype value="required"}>
        <{/if}>
        <!-- datepicker滚动定位问题 -->
        <{if $mini_passport == true}>
          <{assign var=options value="{inject:'mini_signup'}"}>
        <{/if}>
        <{input type="datepicker" data-calendar-options=$options vtype=$vtype name=$item.attr_column value=$value}>
      <{/if}>

      <{if $item.attr_type =='region'}>
      <{if $item.attr_required eq 'true'}>
      <{input app=ectools type="region" name=$item.attr_column value=$item.attr_value vtype="area"}>
      <{else}>
      <{input app=ectools type="region" name=$item.attr_column value=$item.attr_value}>
      <{/if}>
      <{/if}>

      <{if $item.attr_type =='gender'}>
      <{input type='gender' name=$item.attr_column value=$item.attr_value}>
      <{/if}>

      <{if $item.attr_type =='select'}>
      <select name="<{$item.attr_column}>" class="x-select" <{if $item.attr_required eq 'true'}>vtype="required"<{/if}>>
        <option value="" <{if $item.attr_value == ''}>selected="selected"<{/if}>><{t}>请选择<{/t}></option>
        <{foreach from=$item.attr_option item=option name="option"}>
        <option value="<{$option}>" <{if $item.attr_value == $option}>selected="selected"<{/if}>><{$option}></option>
        <{/foreach}>
      </select>
      <{/if}>

      <{if $item.attr_type =='checkbox'}>
      <{foreach from=$item.attr_option item=checkbox name="checkbox" }>
      <input type="checkbox" name="box:<{$item.attr_column}>[]" value="<{$checkbox}>"<{if $item.attr_required eq 'true' && $smarty.foreach.checkbox.iteration==1}> vtype="onerequired"<{/if}> <{foreach from=$item.attr_value item=checkboxvalue name="checkboxvalue" }><{if $checkboxvalue==$checkbox}>checked="checked"<{/if}><{/foreach}>>
      <label><{$checkbox}></label>
      <{/foreach}>
      <input type="hidden" name="<{$item.attr_column}>[]" value="%no%">
      <{/if}>

      <{if $item.attr_type == 'text' || $item.attr_type == 'number' || $item.attr_type == 'alpha'}>
      <input type="text" class="x-input" name="<{$item.attr_column}>" value="<{$item.attr_value}>" vtype="<{if $item.attr_required eq 'true'}>required<{/if}><{if $item.attr_valtype}><{if $item.attr_required eq 'true'}>&&<{/if}><{$item.attr_valtype}><{/if}>" />
      <{/if}>
    </span>
    </li>
    <{/foreach}>
    <{if $valideCode == 'true' || $site_sms_valide == 'true' }>
    <li class="form-item action-verifycode" <{if $valideCode == 'false' && $site_sms_valide == 'true' }> style="display:none" <{/if}> >
      <label for="" class="form-label"><em class="warn">*</em><{t}>验证码<{/t}>：</label>
    <{assign var='codeCheck' value='填写验证码'}>
    <{assign var='isTruecode' value='请正确填写验证码'}>
      <span class="form-act">
        <{input type="vcode" name="signupverifycode" class="verify-input" placeholder=$codeCheck|t:'b2c' data-caution=$isTruecode|t:'b2c' key='LOGINVCODE' a_class="lnklike"}>
      </span>
    </li>
    <{/if}>
   <!--  <li class="form-item action-need-verify" style="display:none;">
      <label for="" class="form-label"><{t}>验证码：<{/t}></label>
      <span class="form-act">
        <{input type="text" name="vcode" id="" class="verify-input"}> <a href="<{link app=b2c ctl=site_passport act=send_vcode_sms}>" class="btn btn-caution action-get-verifycode"><span><span>获取短信验证码</span></span></a>
      </span>
    </li> -->
    <li>
      <div style="margin-left: 125px;">
        <div>注册以后需通过客服审核, 暂时不能登录查询及下单.</div>
        <div>
          工作日周一到周六30分钟内审核,上班时间: 早上8;30-17:30, 其他时间或者紧急审核请拨打电话186-6121-1551手机号(客服), 或者加官方客服微信号:acfabric
        </div>
      </div>

    </li>
    <li class="form-item">
      <label for="" class="form-label"></label>
      <span class="form-act">
        <input type="checkbox" name="license" id="" class="x-check" vtype="onerequired" data-caution="<{t}>请选择同意<{/t}>" checked="checked">
        <label for="" class="form-sub-label"> <{t}>我已阅读并同意<{/t}> <a href="<{link app=b2c ctl=site_passport act=license }>" class="lnklike" target="_blank"><{t}>会员注册协议<{/t}></a> <{t}>和<{/t}> <a href="<{link app=b2c ctl=site_passport act=privacy }>" class="lnklike" target="_blank"><{t}>隐私保护政策<{/t}></a></label>
        <span class="validation-messagebox"></span>
      </span>
    </li>
    <li class="form-item-normal">
      <label for="" class="form-label"></label>
      <span class="form-act">
        <{assign var='label' value='注册'}>
        <{button type="submit" class="btn btn-major btn-big" label=$__b2c=$label|t:'b2c' rel="_request"}>
      </span>
    </li>
  </ul>
</form>

<script>
// function mail(e){
//     if(!/^([a-zA-Z0-9_-])+@([a-zA-Z0-9_-])+(.[a-zA-Z0-9_-])+/.test(e.value)&&e.value!=''){
//       document.getElementById('eMail_validate').style.display = "inline";
//     }
//     else{
//       document.getElementById('eMail_validate').style.display = "none";
//     }
// }




</script>

